<?php
class UserModel extends Core_Model
{
    private $table = "tbl_user";
    function __construct()
    {
        parent::__construct($this->table);
    }

    public function findByUsername($username) {
        return parent::findBy("username = ? and password = ?", array($username, md5("123456")));
    }

}
